package net.arvin.view;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

public class ArvinViewPager extends ViewPager {
	private boolean scrollble=true;
	public ArvinViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		if(!scrollble){
			return true;
		}
		return super.onTouchEvent(event);
	}
	
	public boolean isScrollble(){
		return scrollble;
	}
	
	public void setScrollble(boolean isScrollble){
		this.scrollble = isScrollble;
	}
	
}
